package com.yundasys.lab17.lab17springbootdemo.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;

/**
 * @Title: Dog
 * @Description:
 * @author: jiangta
 * @date: 2023/8/23 2:48 下午
 * @Version: 1.0
 */
@Data
@Slf4j
public class Dog3 implements InitializingBean {
    private String name;
    private String color;

    public Dog3() {
        log.info("---dog的无参构造方法被执行");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("---afterPropertiesSet被执行");
    }

    public void init() {
        log.info("---initMethod被执行");
    }
}